package com.czy.workflow.core.model;

import lombok.Data;

import javax.persistence.*;
import java.util.List;
import java.util.Set;

@Entity
@Table(name = "flow_main", schema = "work")
@Data
public class FlowMain extends FlowMeta{

    @OneToMany(fetch = FetchType.EAGER)
    @JoinColumn(name = "flow_id")
    List<FlowNode> nodes;

    @OneToMany(fetch = FetchType.EAGER)
    @JoinColumn(name = "flow_id")
    Set<FlowBranch>    branches;

}
